package com.jindy.module.oaEvectionApproval.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jindy.common.annotation.Excel;
import com.jindy.common.core.domain.BaseEntity;

/**
 * 出差申请对象 sy_evection_trip
 * 
 * @author jindy
 * @date 2023-05-31
 */
public class SyEvectionTrip extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 出差申请表id */
    @Excel(name = "出差申请表id")
    private Long evectionId;

    /** 交通工具 */
    @Excel(name = "交通工具")
    private String transportation;

    /** 单程往返 */
    @Excel(name = "单程往返")
    private String oneway;

    /** 出发地 */
    @Excel(name = "出发地")
    private String departure;

    /** 目的地 */
    @Excel(name = "目的地")
    private String destination;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 时长（天） */
    @Excel(name = "时长", readConverterExp = "天=")
    private String duration;

    /** 行程顺序 */
    @Excel(name = "行程顺序")
    private String tripOrder;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEvectionId(Long evectionId) 
    {
        this.evectionId = evectionId;
    }

    public Long getEvectionId() 
    {
        return evectionId;
    }
    public void setTransportation(String transportation) 
    {
        this.transportation = transportation;
    }

    public String getTransportation() 
    {
        return transportation;
    }
    public void setOneway(String oneway) 
    {
        this.oneway = oneway;
    }

    public String getOneway() 
    {
        return oneway;
    }
    public void setDeparture(String departure) 
    {
        this.departure = departure;
    }

    public String getDeparture() 
    {
        return departure;
    }
    public void setDestination(String destination) 
    {
        this.destination = destination;
    }

    public String getDestination() 
    {
        return destination;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDuration(String duration) 
    {
        this.duration = duration;
    }

    public String getDuration() 
    {
        return duration;
    }
    public void setTripOrder(String tripOrder) 
    {
        this.tripOrder = tripOrder;
    }

    public String getTripOrder() 
    {
        return tripOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("evectionId", getEvectionId())
            .append("transportation", getTransportation())
            .append("oneway", getOneway())
            .append("departure", getDeparture())
            .append("destination", getDestination())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("duration", getDuration())
            .append("tripOrder", getTripOrder())
            .append("remark", getRemark())
            .toString();
    }
}
